package com.hl.order.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hl.order.mapper.SystemConfMapper;
import com.hl.order.domain.SystemConf;
import com.hl.order.service.ISystemConfService;

/**
 * 系统配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
@Service
public class SystemConfServiceImpl implements ISystemConfService 
{
    @Autowired
    private SystemConfMapper systemConfMapper;

    /**
     * 查询系统配置
     * 
     * @param id 系统配置主键
     * @return 系统配置
     */
    @Override
    public SystemConf selectSystemConfById(Long id)
    {
        return systemConfMapper.selectSystemConfById(id);
    }

    /**
     * 查询系统配置列表
     * 
     * @param systemConf 系统配置
     * @return 系统配置
     */
    @Override
    public List<SystemConf> selectSystemConfList(SystemConf systemConf)
    {
        return systemConfMapper.selectSystemConfList(systemConf);
    }

    /**
     * 新增系统配置
     * 
     * @param systemConf 系统配置
     * @return 结果
     */
    @Override
    public int insertSystemConf(SystemConf systemConf)
    {
        return systemConfMapper.insertSystemConf(systemConf);
    }

    /**
     * 修改系统配置
     * 
     * @param systemConf 系统配置
     * @return 结果
     */
    @Override
    public int updateSystemConf(SystemConf systemConf)
    {
        systemConf.setUpdateTime(DateUtils.getNowDate());
        return systemConfMapper.updateSystemConf(systemConf);
    }

    /**
     * 批量删除系统配置
     * 
     * @param ids 需要删除的系统配置主键
     * @return 结果
     */
    @Override
    public int deleteSystemConfByIds(Long[] ids)
    {
        return systemConfMapper.deleteSystemConfByIds(ids);
    }

    /**
     * 删除系统配置信息
     * 
     * @param id 系统配置主键
     * @return 结果
     */
    @Override
    public int deleteSystemConfById(Long id)
    {
        return systemConfMapper.deleteSystemConfById(id);
    }
}
